<?php

abstract class MCWebModule extends CWebModule
{
	public function __construct($id, $parent, $config)
	{
		$default = array(
			'import' => array(
				$id . '.models.*'
			),
			'params' => array(
				'rights' => require $this->basePath . '/config/rights.php',
			),
			'defaultController' => 'index',
			'layoutPath' => Yii::app()->layoutPath,
			'layout' => Yii::app()->layout
		);
		parent::__construct($id, $parent, array_merge($default, $config));
	}
}